<section class="wrapper">


	<div class="col-lg-12">
		<!--work progress start-->
		<section class="panel">

			<div class="inbox-head">
				<h3>LISTING LOGO : <?= $post['title'];?></h3>
				<a href="<?= base_url();?>secure/listing/add"><button type="button"
						class="btn btn-danger pull-right">
						<i class="icon-plus"></i>
					</button>
				</a>
			</div>
			<div class="panel-body">
			
			<?php
				if($this->session->flashdata('message'))
				{
					$msg = $this->session->flashdata('message');
					echo  $this->session->flashdata('message');
				}
				?>
			
				<div class="col-xs-9 clearfix">
					
					
					<form class="form-horizontal" method="POST" enctype="multipart/form-data"
						action="<?= base_url();?>secure/listing/upload_logo">
						<input type="hidden"
					name="<?php echo $this->security->get_csrf_token_name(); ?>"
					value="<?php echo $this->security->get_csrf_hash();?>" />
						
							
						<div class="form-group">
							<div class="col-sm-5">
							 
								<input type="file" name="userfile" value="Browse" />
							</div>
							
				</div>
			
				<div class="form-group">
							<div class="col-sm-7 col-sm-9">
							<input type="hidden" name="post_id" id="post_id" value="<?= $post_id;?>">
								<button type="submit" name="upload" class="btn btn-info" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Not allowed in Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');"  >Save & Continue</button>
								
								<?php if($logo == 'no-logo.png'){?>
								<a href="<?= base_url();?>secure/listing/photo/<?= $post_id;?>" class="btn btn-warning">Skip</a>
								<?php }?>
								<?php if($logo != 'no-logo.png'){?>
								<a href="<?= base_url();?>secure/listing/photo/<?= $post_id;?>" class="btn btn-success">Next</a>
							<?php }?>
							
							</div>
							<div class="pull-right col-lg-3">
							<img class="img-responsive" src="<?= base_url();?>assets/img/data/logo/<?= $logo;?>" > 	</div>
							</div>
						
								
					</form>
				</div>
			
			</div>
		</section>
	</div>
</section>
